<!DOCTYPE html>
<html>
<head>
	<title>函数内部变量提升</title>
</head>
<body>
<script type="text/javascript">
	
	function fn() {
		console.log(a);		// undefined
		var a = 12;
	}
	fn();

</script>
</body>
</html>